import fetch from 'common/fetch'
import {reviewer} from 'common/uri'

export function getReviewers(params) {
  return fetch({
    url: reviewer.reviewers,
    method: 'get',
    params
  })
}

export function getTotalReviewer(params) {
  return fetch({
    url: reviewer.total,
    method: 'get',
    params
  })
}

export function getReviewerSex(params) {
  return fetch({
    url: reviewer.sex,
    method: 'get',
    params
  })
}

export function getReviewerAddress(params) {
  return fetch({
    url: reviewer.address,
    method: 'get',
    params
  })
}

export function getReviewerSexByTopicId(params) {
  return fetch({
    url: reviewer.topicSex,
    method: 'GET',
    params
  })
}

export function getReviewerAddressByTopicId(params) {
  return fetch({
    url: reviewer.topicAddress,
    method: 'GET',
    params
  })
}

export function getReviewerSexByArticleId(params) {
  return fetch({
    url: reviewer.articleSex,
    method: 'GET',
    params
  })
}

export function getReviewerAddressByArticleId(params) {
  return fetch({
    url: reviewer.articleAddress,
    method: 'GET',
    params
  })
}

export function getTopTenReviewer(params) {
  return fetch({
    url: reviewer.ten,
    method: 'GET',
    params
  })
}
